<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="deviceTypeList" checkbox="true" fitColumns="true" title="留言管理" actionUrl="messageBoardController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="留言时间"  field="createDate" formatter="yyyy-MM-dd hh:mm" queryMode="group"  query='true' width="120"></t:dgCol> 
   <t:dgCol title="留言用户"  field="createUser.realName"  queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="留言内容"  field="content"    queryMode="single"  width="100" ></t:dgCol>
   <t:dgCol title="回复人"  field="responseUser.realName"  queryMode="single"  width="100"></t:dgCol> 
   <t:dgCol title="回复内容"  field="responseDesc"    queryMode="single"  width="100" ></t:dgCol> 
  
   <t:dgCol title="操作" field="opt" width="160"></t:dgCol>
   <t:dgFunOpt  funname="editItemDetail({'回复'},{'messageBoardController.do?responseView'},id,{'600'},{'500'})" title="回复"  />
   <t:dgFunOpt  funname="showItemDetail({'查看'},{'messageBoardController.do?view'},id,{'600'},{'300'})" title="查看"  />
   <t:dgDelOpt title="删除" url="messageBoardController.do?doDel&id={id}" />
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="messageBoardController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/device/deviceTypeList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 		$("#deviceTypeListtb").find("input[name='createDate_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 		$("#deviceTypeListtb").find("input[name='createDate_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 }); 
 

//导出
function ExportXls() {
	JeecgExcelExport("messageBoardController.do?exportXls","deviceTypeList");
} 
 
 
 </script>